home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-03 / hgdll.zip / README.TXT < prev   
Text File  |  1992-01-02  |  3KB  |  53 lines

  1.     First let me say that I have used VB for Windows for several months 
  2. and I would recommend it to anyone with a BASIC application for which
  3. they require a Windows equivalent.  If you really didn't want to take the 
  4. time to program productively using SDK, Visual Basic provided the least
  5. painfull alternative.  Until QCWin was released that is.  
  6.  
  7.     There were many things however left out of VB which require the
  8. capabilities of other compilers.  Included amoung these things are
  9. calls to the remaing Windows library functions and direct memory/port
  10. access.  Because the functions for cursor control were also omitted
  11. VB programs which require lengthy memory/disk accesses cannot display
  12. the famous HourGlass cursor to prevent operator hysteria.  This bothered
  13. me to the point of writing an HGDLL for that singular purpose.
  14.  
  15.     Although Window library functions may be called by declaring them
  16. individually in the VB .BAS file, some of the data types involved are
  17. defined in Windows.h differently than those common to VB.  There is 
  18. probably an easy work-around for this as there are probably several 
  19. other ways to tap the other non-VB Windows functions.  But I feel that 
  20. this approach will have more appeal to VB users who aren't particularly
  21. iterested in writing technically rigorous code for their otherwise
  22. user friendly applications.
  23.  
  24.     In order to use the HGDLL.dll it must be located somewhere on the 
  25. PATH for Windows to find it.  The most obvious place to put it then is
  26. either in Root or the \Windows subdirectory.  The VB application must
  27. also be told where to find it by adding a declaration statement similar
  28. to that below in its .BAS file:
  29.  
  30.         Declare Sub Hglass Lib "c:\windows\HGdll.dll" ()
  31.  
  32.     The following statement will serve to load and display the HourGlass
  33. cursor while VB is busy processing non-cursor related operations.  Normally
  34. another call to the Windows function would restore the original cursor by
  35. its initial "handle" but VB seems happy to do that automaticly prior to 
  36. processing further mouse input.  
  37.  
  38.         Sub control_click()
  39.             Dim X as Integer
  40. -->         HGdll                 <--
  41.             Show "any_form"
  42.         End Sub
  43.  
  44.     If anyone has a chance to use the above routine I would appreciate
  45. hearing any comments they might have.  I will be attempting to stay 
  46. current with the PC-OHIO Windows conference postings as well as my
  47. personal mail.
  48.  
  49.                                         Michael Swaney
  50.  
  51.  
  52.  
  53.